import jsdom from 'jsdom';
const { JSDOM } = jsdom;

const { document } = (new JSDOM('')).window;
global.document = document;
global.window = document.defaultView;
global.navigator = global.window.navigator;

// link:https://blog.csdn.net/liwenfei123/article/details/80312251